<template>
	<view class="information-management">
		<NavBar title="服务商资料" :isBack="true"></NavBar>
		<view class="content">
			<view>
				<view class="header">
				   <view class="shop-img">
					   <image :src="servercoreInfo.cover"></image>
					   <view>修改门店图片</view>
				   </view>
				   <image class="back" src="@/static/services/back1.png"></image>
				</view>
				<view class="shop-info">
					<view class="row">
						<view class="left">
							<view class="title">管理员</view>
							<view>{{servercoreInfo.name}}</view>
						</view>
						<image class="back"  src="@/static/services/back1.png"></image>
					</view>
					<view class="row">
						<view class="left">
							<view class="title">电话</view>
							<view>{{servercoreInfo.mobile}}</view>
						</view>
						<image class="back"  src="@/static/services/back1.png"></image>
					</view>
					<view class="row">
						<view class="left">
							<view class="title">公司地址</view>
							<view class="address">{{servercoreInfo.address}}</view>
						</view>
						<image class="back"  src="@/static/services/back1.png"></image>
					</view>
					<view class="row">
						<view class="left">
							<view class="title">开始服务日期</view>
							<view>{{servercoreInfo.name}}</view>
						</view>
						<image class="back"  src="@/static/services/back1.png"></image>
					</view>
					<view class="row">
						<view class="left">
							<view class="title">营业执照</view>
							<view>点击查看</view>
						</view>
						<image class="back"  src="@/static/services/back1.png"></image>
					</view>
					<view class="row">
						<view class="left">
							<view class="title">管理员身份证</view>
							<view>点击查看</view>
						</view>
						<image class="back"  src="@/static/services/back1.png"></image>
					</view>
					<view class="row">
						<view class="left">
							<view class="title">保证金</view>
							<view>{{servercoreInfo.margin}}</view>
						</view>
						<image class="back"  src="@/static/services/back1.png"></image>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script setup>
	import { serversdata } from '@/api/services.js'
	import {reactive,onMounted,toRefs} from 'vue'
	const state = reactive({
			 servercoreInfo:{}
		})
	async function getServercoreInfo(){
			const res= await serversdata()
			state.servercoreInfo=res.data
			console.log(res,'res');
		}
		
		onMounted(()=>{
			getServercoreInfo()
		})
		const {servercoreInfo}= toRefs(state)
</script>

<style lang="scss" scoped>
	page{
		background: #fff;
	}
	.information-management{
		.content{
			width: 750rpx;
			background: #FFFFFF;
			border-radius: 22rpx 22rpx 0rpx 0rpx;
			position: relative;
			z-index: 1;
			padding: 43rpx 46rpx 43rpx 56rpx;
			box-sizing: border-box;
			.header{
				display: flex;
				justify-content: space-between;
				align-items: center;
				padding-bottom: 30rpx;
				border-bottom: 1rpx solid #F5F5F5;
				.shop-img{
					display: flex;
					align-items: center;
					font-weight: bold;
					font-size: 26rpx;
					color: #999999;
					image{
						width: 119rpx;
						height: 119rpx;
						border-radius: 50%;
						margin-right: 40rpx;
					}
				}
			}
			.shop-info{
				.row{
					display: flex;
					justify-content: space-between;
					padding: 39rpx 0rpx 23rpx;
					border-bottom: 1rpx solid #F5F5F5;
					.left{
						display: flex;
						font-weight: 500;
						font-size: 26rpx;
						color: #999999;
						.title{
							font-weight: bold;
							font-size: 26rpx;
							color: #333333;
							min-width: 104rpx;
							margin-right: 30rpx;
						}
						.address{
							width: 435rpx;
						}
					}
				}
			}
			.back{
				width: 14rpx;
				height: 26rpx;
			}
		}
	}
</style>